Optimal. Leaf size=52 \[ \frac {1}{2} \left (2 a^2-b^2\right ) \sinh ^{-1}(x)+\frac {3}{2} a b \sqrt {x^2+1}+\frac {1}{2} b \sqrt {x^2+1} (a+b x) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 52, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {743, 641, 215} \begin {gather*} \frac {1}{2} \left (2 a^2-b^2\right ) \sinh ^{-1}(x)+\frac {3}{2} a b \sqrt {x^2+1}+\frac {1}{2} b \sqrt {x^2+1} (a+b x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 215
Rule 641
Rule 743
Rubi steps
\begin {align*} \int \frac {(a+b x)^2}{\sqrt {1+x^2}} \, dx &=\frac {1}{2} b (a+b x) \sqrt {1+x^2}+\frac {1}{2} \int \frac {2 a^2-b^2+3 a b x}{\sqrt {1+x^2}} \, dx\\ &=\frac {3}{2} a b \sqrt {1+x^2}+\frac {1}{2} b (a+b x) \sqrt {1+x^2}+\frac {1}{2} \left (2 a^2-b^2\right ) \int \frac {1}{\sqrt {1+x^2}} \, dx\\ &=\frac {3}{2} a b \sqrt {1+x^2}+\frac {1}{2} b (a+b x) \sqrt {1+x^2}+\frac {1}{2} \left (2 a^2-b^2\right ) \sinh ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 36, normalized size = 0.69 \begin {gather*} \left (a^2-\frac {b^2}{2}\right ) \sinh ^{-1}(x)+\frac {1}{2} b \sqrt {x^2+1} (4 a+b x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.29, size = 51, normalized size = 0.98 \begin {gather*} \frac {1}{2} \left (b^2-2 a^2\right ) \log \left (\sqrt {x^2+1}-x\right )+\frac {1}{2} \sqrt {x^2+1} \left (4 a b+b^2 x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 45, normalized size = 0.87 \begin {gather*} -\frac {1}{2} \, {\left (2 \, a^{2} - b^{2}\right )} \log \left (-x + \sqrt {x^{2} + 1}\right ) + \frac {1}{2} \, {\left (b^{2} x + 4 \, a b\right )} \sqrt {x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.20, size = 45, normalized size = 0.87 \begin {gather*} -\frac {1}{2} \, {\left (2 \, a^{2} - b^{2}\right )} \log \left (-x + \sqrt {x^{2} + 1}\right ) + \frac {1}{2} \, {\left (b^{2} x + 4 \, a b\right )} \sqrt {x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 38, normalized size = 0.73 \begin {gather*} a^{2} \arcsinh \relax (x )+2 \sqrt {x^{2}+1}\, a b +\left (\frac {\sqrt {x^{2}+1}\, x}{2}-\frac {\arcsinh \relax (x )}{2}\right ) b^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.90, size = 38, normalized size = 0.73 \begin {gather*} \frac {1}{2} \, \sqrt {x^{2} + 1} b^{2} x + a^{2} \operatorname {arsinh}\relax (x) - \frac {1}{2} \, b^{2} \operatorname {arsinh}\relax (x) + 2 \, \sqrt {x^{2} + 1} a b \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.03, size = 32, normalized size = 0.62 \begin {gather*} \left (\frac {x\,b^2}{2}+2\,a\,b\right )\,\sqrt {x^2+1}+\mathrm {asinh}\relax (x)\,\left (a^2-\frac {b^2}{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.25, size = 42, normalized size = 0.81 \begin {gather*} a^{2} \operatorname {asinh}{\relax (x )} + 2 a b \sqrt {x^{2} + 1} + \frac {b^{2} x \sqrt {x^{2} + 1}}{2} - \frac {b^{2} \operatorname {asinh}{\relax (x )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________